package cn.hsw.component.auth.constant;

import cn.hsw.component.core.base.BaseConstant;
import cn.hutool.core.date.DateUnit;

/**
 * 认证相关常量
 * @author 李子木
 */
public class AuthConstant extends BaseConstant {
    public static final String TOKEN_HEADER_NAME = "Authorization";
    public static final String TOKEN_PREFIX = "Bearer ";
    public static final String PHONE_NOT_EMPTY = "手机号不能为空";
    public static final String PASSWORD_NOT_EMPTY = "密码不能为空";
    public static final String USER_NOT_FOUND = "用户不存在,请先注册";
    public static final String PASSWORD_ERROR = "密码错误";
    public static final String TOKEN_TIME_OUT = "token已过期";
    public static final String TOKEN_EXIST = "token非法";
    public static final String TOKEN_NOT_FOUND = "token不存在，未传递";
    public static final String PATH_PREFIX = "/auth";
    public static final String TOKEN_REDIS_KEY = "HSW_BEARER_TOKEN:";
    /**
     * jwtToken过期时间
     */
    public static Long TOKEN_EXPIRE_TIME = 120L*60L;
}
